Stub Georgian language file; category namespace name only.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 16 Apr 2005 00:58:15 +0000 (00:58 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 16 Apr 2005 00:58:15 +0000 (00:58 +0000)
languages/LanguageKa.php [new file with mode: 0644]

diff --git a/languages/LanguageKa.php b/languages/LanguageKa.php
new file mode 100644 (file)
index 0000000..cc8a49f
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+/** Kartuli (Georgian) stub
+  *
+  * @package MediaWiki
+  * @subpackage Language
+  */
+
+require_once( 'LanguageUtf8.php' );
+
+$wgNamespaceNamesKa = array(
+       NS_CATEGORY => "კატეგორია",
+) + $wgNamespaceNamesEn;
+
+class LanguageKa extends LanguageUtf8 {
+       function getNamespaces() {
+               global $wgNamespaceNamesKa;
+               return $wgNamespaceNamesKa;
+       }
+       
+       function getNsText( $index ) {
+               global $wgNamespaceNamesKa;
+               return $wgNamespaceNamesKa[$index];
+       }
+       
+       function getNsIndex( $text ) {
+               global $wgNamespaceNamesKa;
+               
+               foreach ( $wgNamespaceNamesKa as $i => $n ) {
+                       if ( 0 == strcasecmp( $n, $text ) ) {
+                               return $i;
+                       }
+               }
+               return false;
+       }
+}
+
+?>